#!/bin/bash
# test <generateur> <max> <commande>

if [ $# -lt 3 ]
then
	echo "Usage: " $0 "<generateur> <max> <commande>"
	exit 0
fi

for ((i=1; i<=$2; i++))
do
	echo -e '---------'$1 $i'----------'
	$1 $i | $3
	echo -e '--------------------------------------\n\n'
done

exit 0
